﻿<UserControl x:Class="LiveTiss.Guias.UserControls.GuiaSolicitacaoOdontoProcedimentoSolicitado"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    mc:Ignorable="d" x:Name="uc"
    d:DesignHeight="300" Width="910">

    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>

    <toolkit:WrapPanel Orientation="Horizontal">
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Codigo Tabela" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" 
                        Text="{Binding Path=Value.procedimentoOdonto.codigo,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" Width="180" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Descrição Tabela" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" 
                        Text="{Binding Path=Value.procedimentoOdonto.descricao,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" Width="180" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Tabela" FontFamily="Segoe UI" FontSize="13.333"/>
                <ComboBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180" 
                        DisplayMemberPath="Value" SelectedValuePath="Key"
                        ItemsSource="{Binding Path=Value.procedimentoOdonto.tipoTabelaItems,ElementName=uc,Mode=OneWay}"
                        SelectedIndex="{Binding Path=Value.procedimentoOdonto.tipoTabela,ElementName=uc,Mode=TwoWay,Converter={StaticResource enumConverter},ConverterParameter='Tabela',ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <uc:DenteRegiao Width="210" Margin="1" Value="{Binding Path=Value.denteRegiao,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}"/>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Face" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" MaxLength="5" Width="180"
                        Text="{Binding Path=Value.face,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Quantidade" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180"
                        Text="{Binding Path=Value.quantidade,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="QuantidadeUS" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180"
                        Text="{Binding Path=Value.quantidadeUS,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Franquia Participação" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180"
                        Text="{Binding Path=Value.franquiaCoparticipacao,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Valor" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180"
                        Text="{Binding Path=Value.valor,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
        <Grid Width="210" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" Text="Total Franquia cooparticipação" FontFamily="Segoe UI" FontSize="13.333"/>
                <TextBox HorizontalAlignment="Left" Margin="0,6,0,0" Width="180"
                        Text="{Binding Path=Value.totalFranquiaCoparticipacao,ElementName=uc,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}" />
            </StackPanel>
        </Grid>
    </toolkit:WrapPanel>
</UserControl>
